From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 30 Sep 2005 16:34:01 +0000 (+0100) Subject: xencons must notify via evtchn. It can't use the irq as the X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16763^2~60^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=a26d93bd22a163d9656122d089f5aece6ef63eab;p=xen.git xencons must notify via evtchn. It can't use the irq as the notification handle because console is used early, before the irq is set up. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/console/xencons_ring.c b/linux-2.6-xen-sparse/drivers/xen/console/xencons_ring.c index c74b045db2..346c2fd656 100644 --- a/linux-2.6-xen-sparse/drivers/xen/console/xencons_ring.c +++ b/linux-2.6-xen-sparse/drivers/xen/console/xencons_ring.c @@ -65,7 +65,8 @@ static int __xencons_ring_send( int xencons_ring_send(const char *data, unsigned len) { int sent = __xencons_ring_send(outring(), data, len); - notify_remote_via_irq(xencons_irq); + /* Use evtchn: this is called early, before irq is set up. */ + notify_remote_via_evtchn(xen_start_info->console_evtchn); return sent; }